import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';

const FlowerPage = () => import('../views/flowerPage.vue');
const OrderPage = () => import('../views/orderPage.vue');

const routes = [
  {
    path: '/',
    redirect: '/flowerPage'
  },
  {
    path: '/flowerPage',
    name: 'flowerPage',
    component: FlowerPage
  },
  {
    path: '/orderPage',
    name: 'orderPage',
    component: OrderPage
  },
]

const router = createRouter({
  // history: createWebHistory(),
  history: createWebHashHistory(),
  routes
})

export default router
